<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html lang="zh-ch">
<head>
<meta charset="utf-8">
<title>简洛订餐系统-修改密码</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<jsp:include page="/WEB-INF/views/inc/inc.jsp"></jsp:include>
</head>
<body style="zoom: 1; background-color: #e4e4e4;" >
    <jsp:include page="/WEB-INF/views/inc/Header.jsp"></jsp:include>
    <div class="container  padding" style="margin-top: 5px; background: rgba(18,30,165,0.2);">
       <div class="line">
           <div class="x2 bg-white radius padding-small">
                <jsp:include page="/WEB-INF/views/inc/LeftMenu.jsp"></jsp:include>
           </div>
           <div class="x10 padding-small-left ">
            <div class="bg-white x12 padding radius">
                <h1>修改密码</h1>
                <hr class="bg-main"/>
                
                <div class="bg border border-gray radius padding-big margin-small-top">
	                <form class="form form-block" action="UpdateUserPwd.nut">
	                    <div class="login-form" id="login">
	                    
	                        <c:if test="${flag == '1'}">
	                           <div class="alert alert-green"><span class="close rotate-hover"></span>密码更新成功。</div>
	                        </c:if>
		                    <div class="form-group" style="margin: 10px 0px; width: 50%;" >
	                            <div class="label"><label class="addon" for="oldpassword">原密码：</label></div> 
	                            <div class="field">
		                            <input
		                                type="password" class="input radius-none" 
		                                id="oldpassword" name="oldpassword" data-validate="required:原密码不能为空,ajax#CheckUserPwd.nut?userpwd=:原密码不正确" placeholder="请输入现在正在使用的密码"/>
	                            </div>
	                        </div>
		                    <div class="form-group" style="margin: 10px 0px; width: 50%;" >
	                            <div class="label"><label class="addon" for="newPassWord">新密码：</label></div> 
	                            <div class="field">
		                            <input
		                                type="password" class="input radius-none" 
		                                id="newPassWord" name="newPassWord" data-validate="required:新密码不能为空" placeholder="请输入新密码"/>
		                        </div>
	                        </div>
		                    <div class="form-group" style="margin: 10px 0px; width: 50%;" >
	                            <div class="label"><label class="addon" for="repeatPassWord">确认新密码：</label></div>
	                            <div class="field"> 
		                            <input
		                                type="password" class="input radius-none" 
		                                id="repeatPassWord" name="repeatPassWord" data-validate="required:确认密码不能为空,repeat#newPassWord:两次密码输入不一致" placeholder="请再输入一次新密码"/>
		                         </div>
	                        </div>
		                </div>
		                <div class="line" style="width: 50%; ">
		                   <div class="x3 x9-move">
			                 <button type="submit" class="button bg-green" id="userSubmitBut">提交</button>
		                   </div>
		                </div>
		            </form>
                </div>
            </div>           
          </div>
       </div>
    </div>
    <jsp:include page="/WEB-INF/views/inc/Inc01.jsp"></jsp:include>
</body>
</html>